package org.example.pojo;



import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.validation.groups.Create;



import java.time.LocalDateTime;
import java.util.Date;



@Data//自动生成getset方法
@NoArgsConstructor//自动生成无参构造方法
@AllArgsConstructor//自动生成有参构造方法
public class OperationLog {
    //唯一id
    private Integer id;
    //操作者id
    @NotNull(message = "操作者id不能为空",groups = {Create.class})
    private Integer userId;
    //操作人id
    @NotNull(message = "操作人id不能为空",groups = {Create.class})
    private Integer operationUserId;
    //操作时间
    private Date createTime;
    //操作类型
    @NotNull(message = "操作类型不能为空",groups = {Create.class})
    private Boolean operationType;
    //备注
    @NotNull(message = "备注不能为空",groups = {Create.class})
    private String text;


}
